package org.example.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient("account-service")
public interface AccountClient {
    @PutMapping ("/account/{userId}/{money}")
    ResponseEntity<Boolean>deduct(@PathVariable("userId") String userId, @PathVariable("money") Integer money);
}
